package top.software.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import top.software.pojo.User;

/**
 * @ClassName: UserMapper
 * @Author: Amosen
 * @Since: 2021/4/20
 */
@Repository
public interface UserMapper {

	public User getUserByAccount(@Param("account") String account);

	public List<User> getUserByAuth(@Param("auth") Integer auth);

	public List<User> getAllUser();

	public List<User> getUserVague(@Param("account") String account, @Param("username") String username);

	public int addUser(User user);

	public int updateUser(User user);

	public int deleteUser(@Param("account") String account);

}
